{extend name="frame/base" /}
{block name="body"}
<form action="{$url}" method="post">
    <label>导航名称<input name="name" id="name" type="text" value="{$info['name']|default=''}"/>
    </label>
    <label>导航链接<input name="href" id="href" type="text" value="{$info['href']|default=''}"/>
    </label>
    <label>导航排序<input name="sort" id="sort" type="text" value="{$info['sort']|default='0'}"/>
    </label>
    <label>打开方式<select id="target" name="target">
        <option value="_self">本页打开</option>
        <option value="_blank">新窗口打开</option>
    </select>
    </label>
    <input type="submit" value="保存" onclick="submit_form();return false">
</form>
<br>
<script>
    var target="{$info['target']|default=''}";

    $(function () {
        if(target!=""){
            $("#target").val(target)
        }

        $.datetimepicker.setLocale('ch');
        $('.some_class').datetimepicker({
            formatTime:'H:i',
            format:'Y-m-d H:i'
        });
    })
    function submit_form() {
        $("form").submit()
    }
</script>
{/block}
